module hex8_HC595_top(
	clk,
	rst_n,
	DIO,
	SRCLK,
	RCLK,
	data
);
	input clk;
	input rst_n;
	input [31:0] data;
	output DIO;
	output SRCLK;
	output RCLK;
	
	wire [7:0] sel;
	wire [7:0] seg;
	
hex8 hex8_inst(
	.clk(clk),
	.rst_n(rst_n),
	.data(data),
	.sel(sel),
	.seg(seg)
);

HC595_Driver HC595_Driver_inst(
	.clk(clk),
	.rst_n(rst_n),
	.seg(seg),
	.sel(sel),
	.DIO(DIO),
	.SRCLK(SRCLK),
	.RCLK(RCLK)
);

endmodule
